package org.pearl.springbootsecurity.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author demo
 * @since 2021-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DataScope对象", description="")
public class DataPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "data_permission_id", type = IdType.ID_WORKER)
    private Long dataPermissionId;

    @ApiModelProperty(value = "权限code")
    private String code;

    @ApiModelProperty(value = "数据权限名")
    private String name;

    @ApiModelProperty(value = "查询的字段")
    private String field;

    @ApiModelProperty(value = "列名")
    private String column;

    @ApiModelProperty(value = "Mapper方法全类名")
    private String className;

    @ApiModelProperty(value = "权限SQL")
    private String value;

    @ApiModelProperty(value = "类型")
    private String type;


}
